FUNCTION

nop

function nop(): op

Create a no-op test operation call.

The zero-argument rell.test.nop() is effectively an alias of rell.test.nop(x: integer) where a unique integer argument x is passed each time, serving the purpose of distinguishing transactions that are identical except for the presence of a nop call.

Example:

Illegal
rell.test.tx().op(my_op).run();
rell.test.tx().op(my_op).run(); // Not allowed; all transactions must be unique!
Legal
// Ok, the transactions are distinct since each nop automatically uses a different nonce.
rell.test.tx().op(my_op).op(rell.test.nop()).run();
rell.test.tx().op(my_op).op(rell.test.nop()).run();

See Also

  1. NOP - Wikipedia
  2. Cryptographic nonce - Wikipedia

Since

0.10.4


function nop(x: integer): op

Create a no-op test operation call.

Serves the purpose of distinguishing transactions that are identical except for the presence of a nop call.

rell.test.nop(x) is equivalent to rell.test.op('nop', x.to_gtv()), which is a test operation call to the predefined operation:

operation nop(v: gtv) {}

Example:

Illegal
rell.test.tx().op(my_op).op(rell.test.nop(0)).run();
rell.test.tx().op(my_op).op(rell.test.nop(0)).run(); // Not allowed; all transactions must be unique!
Legal
rell.test.tx().op(my_op).op(rell.test.nop(0)).run();
rell.test.tx().op(my_op).op(rell.test.nop(1)).run(); // Ok, since the transactions are distinct.

Parameters

  • x — the nonce

See Also

  1. NOP - Wikipedia
  2. Cryptographic nonce - Wikipedia

Since

0.10.4


function nop(x: text): op

Create a no-op test operation call.

Serves the purpose of distinguishing transactions that are identical except for the presence of a nop call.

rell.test.nop(x) is equivalent to rell.test.op('nop', x.to_gtv()), which is a test operation call to the predefined operation:

operation nop(v: gtv) {}

Example:

Illegal
rell.test.tx().op(my_op).op(rell.test.nop("a")).run();
rell.test.tx().op(my_op).op(rell.test.nop("a")).run(); // Not allowed; all transactions must be unique!
Legal
rell.test.tx().op(my_op).op(rell.test.nop("a")).run();
rell.test.tx().op(my_op).op(rell.test.nop("z")).run(); // Ok, since the transactions are distinct.

Parameters

  • x — the nonce

See Also

  1. NOP - Wikipedia
  2. Cryptographic nonce - Wikipedia

Since

0.10.4


function nop(x: byte_array): op

Create a no-op test operation call.

Serves the purpose of distinguishing transactions that are identical except for the presence of a nop call.

rell.test.nop(x) is equivalent to rell.test.op('nop', x.to_gtv()), which is a test operation call to the predefined operation:

operation nop(v: gtv) {}

Example:

Illegal
rell.test.tx().op(my_op).op(rell.test.nop(x'00')).run();
rell.test.tx().op(my_op).op(rell.test.nop(x'00')).run(); // Not allowed; all transactions must be unique!
Legal
rell.test.tx().op(my_op).op(rell.test.nop(x'00')).run();
rell.test.tx().op(my_op).op(rell.test.nop(x'01')).run(); // Ok, since the transactions are distinct.

Parameters

  • x — the nonce

See Also

  1. NOP - Wikipedia
  2. Cryptographic nonce - Wikipedia

Since

0.10.4

© 2026 Chromia